package com.own.business.exam.entity.query;


import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ExamPaperQuery
 *
 * @author chenxueli
 * @date 2021/05/18 14:43:47
 */
@Schema(title = "考试试卷表" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ExamPaperQuery extends BaseQuery {

    @Schema(title = "试卷id")
    private Long examId;

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "规则id")
    private Long ruleId;

    @Schema(title = "练习id")
    private Long practiceId;

    @Schema(title = "题目数量")
    private Integer questionNumber;

    @Schema(title = "作答状态 0=未作答 1=已作答 2=保存 3=废弃")
    private Integer status;

    @Schema(title = "用时（ms）")
    private Long useTime;

    @Schema(title = "分数")
    private BigDecimal score;

    @Schema(title = "提交练习的时间")
    private LocalDateTime submitTime;

}
